
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<HTML>
 <HEAD>
  <TITLE>使用动作标签forward</TITLE>
 </HEAD>
 <BODY>
  <%
	int i=(int)(Math.random()*10);  //产生随机数
	if(i>=5){
  %>
	<jsp:forward page="example2_1_1a.jsp">
		<jsp:param name="sjs" value="<%=i%>" />
	</jsp:forward>
  <%
	}else{
  %>
	<jsp:forward page="example2_1_1b.jsp">
		<jsp:param name="sjs" value="<%=i%>" />
	</jsp:forward>
  <%}%>
 </BODY>
</HTML>

